package com.example.spring.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.spring.dao.RoleDAO;
import com.example.spring.model.Role;

@Service
@Transactional
public class RoleServiceImpl implements RoleService{

	@Autowired  
    private RoleDAO roleDAO;  
  
    public List<Role> getRole(int id) {  
        return roleDAO.getRole(id);  
    }
	
}
